<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <!-- import CSS -->
    <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.9/theme-chalk/index.css">
</head>
<body>
<div id="app">
    <el-aside width="200px">
        <div style="width: 200px;height: 1000px;background-color: #545c64">
            <el-menu
                    default-active="2"
                    class="el-menu-vertical-demo"
                    @open="handleOpen"
                    @close="handleClose"
                    background-color="#545c64"
                    text-color="black"
                    active-text-color="#ffd04b">
                <el-menu-item index="1">
                    <i class="el-icon-menu"></i>
                    <span slot="title">首页</span>
                </el-menu-item>
                <el-menu-item index="2">
                    <i class="el-icon-bell"></i>
                    <span slot="title">点菜</span>
                </el-menu-item>
                <el-menu-item index="3">
                    <i class="el-icon-document"></i>
                    <span slot="title">菜品管理</span>
                </el-menu-item>
                <el-menu-item index="4">
                    <i class="el-icon-price-tag"></i>
                    <span slot="title">餐桌</span>
                </el-menu-item>
                <el-menu-item index="5">
                    <i class="el-icon-user"></i>
                    <span slot="title">会员中心</span>
                </el-menu-item>
                <el-menu-item index="6">
                    <i class="el-icon-s-shop"></i>
                    <span slot="title">门店管理</span>
                </el-menu-item>
            </el-menu>
        </div>
    </el-aside>
</div>
</body>
<!-- import Vue before Element -->
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>
<script>
    let v = new Vue({
        el: '#app',
        data: function() {
            return {
                info:"HelloEUI!"
            }
        },
        methods:{
            handleClick(tab, event) {
                console.log(tab, event);
            },
            handleOpen(key, keyPath) {
                console.log(key, keyPath);
            },
            handleClose(key, keyPath) {
                console.log(key, keyPath);
            }

        }
    })
</script>
</html>